package pers.ree.demo.base;

public class CloneDemo extends ObjectDemo implements Cloneable {

    public Object getClone() throws CloneNotSupportedException {
        return super.clone();
    }

    public static void main(String[] args) {
        CloneDemo cloneDemo = new CloneDemo();
        try {
            Object obj = cloneDemo.getClone();
            System.out.println(obj instanceof CloneDemo);
        } catch(CloneNotSupportedException e) {
            e.printStackTrace();
        }
    }
}
